package com.itheima.ws.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

/**
 * 消息实体
 */
@Data
public class Message {

    private String toName;
    private String fromName;
    private String message;
    private Date date;

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }



    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Message(String toName, String fromName, String message, Date date) {
        this.toName = toName;
        this.fromName = fromName;
        this.message = message;
        this.date = date;
    }

}